package com.imau.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 */

@TableName("t_permission_api")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PermissionApi implements Serializable {
    @TableField(exist=false)
    private static final long serialVersionUID = -1803315043290784820L;
    /**
     * 主键
     */
    @TableId(type= IdType.ASSIGN_ID)
    private String id;

    /**
     * 链接
     */
    private String apiUrl;

    /**
     * 请求类型
     */
    private String apiMethod;

    /**
     * 权限等级，1为通用接口权限，2为需校验接口权限
     */
    private String apiLevel;
}